clc;
close all;

image = imread('mandrill_lumi.bmp');

%Laplacien anisotrope 4-connexite
edgeFilter = [0,-1,0;-1,4,-1;0,-1,0];
filteredImage = imfilter(image, edgeFilter);

subplot(1,3,1);
imshow(image);
title('Originale');

subplot(1,3,2);
imshow(filteredImage);
title('anisotrope 4-connexite');

%Laplacien isotrope 8-connexite
edgeFilter = [-1,-1,-1;-1,8,-1;-1,-1,-1];
filteredImage = imfilter(image, edgeFilter);

subplot(1,3,3);
imshow(filteredImage);
title('isotrope 8-connexite');